import Vue from 'vue'
import VueRouter from 'vue-router'
import musicSideBar from '../views/musicSideBar.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'musicSideBar',
    redirect:"/serchMusic",
    component: musicSideBar,
    children:[
      {
        path: 'serchMusic',
        name: 'serchMusic',
        component: () => import ('@/views/onLineMusic/serchMusic/serchMusic.vue'),
      },{
        path: 'radioStation',
        name: 'radioStation',
        component: () => import ('@/views/onLineMusic/radioStation/radioStation.vue'),
      },{
        path: 'musicVideo',
        name: 'musicVideo',
        component: () => import ('@/views/onLineMusic/musicVideo/musicVideo.vue'),
      },{
        path: 'musicList',
        name: 'musicList',
        component: () => import ('@/views/onLineMusic/musicList/musicList.vue'),
      },{
        path: 'musicHall',
        name: 'musicHall',
        component: () => import ('@/views/onLineMusic/musicHall/musicHall.vue'),
      },{
        path: 'auditionList',
        name: 'auditionList',
        component: () => import ('@/views/myMusic/auditionList/auditionList.vue'),
      },{
        path: 'myLoveMusic',
        name: 'myLoveMusic',
        component: () => import ('@/views/myMusic/myLoveMusic/myLoveMusic.vue'),
      },
    ]
  },
  {

    path: '/template',
    name: 'template',
    component: () => import ('@/views/template.vue'),

  },
  // {
  //   path: '/about',
  //   name: 'about',
  //   component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  // }
]

const router = new VueRouter({
  routes
})

export default router
